<template>
	<view class="content">
		<view class="search-box">
			<uni-search-bar @confirm="search"  v-model="searchValue" @input="input" @cancel="cancel" @clear="clear" placeholder="请输入订单编号">
			</uni-search-bar>
		</view>
		<view class="list-box" @click="goto()">
			<view class="top-box">
				<view class="tiem-box">
					2024-09-23
				</view>
				<view class="status-box">
					<view class="item-box">
						未回款
					</view>
				</view>
			</view>
			<view class="xian"></view>
			<view class="title-box">
				济宁市任城区全民健身设施智能化管理平台技术服务费2023年
			</view>
			<view class="info-box">
				<view class="info-item">
					<view class="info-item-title">
						商品名称
					</view>
					<view class="info-item-text">
						测试金具
					</view>
				</view>
				<view class="info-item">
					<view class="info-item-title">
						商品名称
					</view>
					<view class="info-item-text">
						测试金具
					</view>
				</view>
				<view class="info-item">
					<view class="info-item-title">
						商品名称
					</view>
					<view class="info-item-text">
						测试金具
					</view>
				</view>
			</view>
			<view class="text-box">
				供应商：河南郑州宝泰纳米材料有限公司
			</view>
			<view class="xian"></view>
			<view class="bnt-box">
				<view class="bnt-big-box">
					<!-- <view class="bnt" @click="goto2()">
						已选择商品
					</view> -->
					<view class="bnt" @click="goto1()">
						订单详情
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				searchValue:'',
			}
		},
		onLoad() {
			
		},
		methods:{
			goto2() {
				uni.navigateTo({
					url:'/pagesA/market/commodity/index'
				})
			},
			goto1() {
				uni.navigateTo({
					url:'/pagesA/oder/index'
				})
			},
			goto() {
				uni.navigateTo({
					url:'/pagesA/market/details/index'
				})
			},
			search(res) {
				uni.showToast({
					title: '搜索：' + res.value,
					icon: 'none'
				})
			},
			input(res) {
				console.log('----input:', res)
			},
			clear(res) {
				uni.showToast({
					title: 'clear事件，清除值为：' + res.value,
					icon: 'none'
				})
			},
			blur(res) {
				uni.showToast({
					title: 'blur事件，输入值为：' + res.value,
					icon: 'none'
				})
			},
			cancel(res) {
				uni.showToast({
					title: '点击取消，输入值为：' + res.value,
					icon: 'none'
				})
			}
		}
		
	}
</script>

<style lang="scss">
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding-left: 20rpx;
		padding-right: 20rpx;
		.search-box {
			width: 750rpx;
			height: 103rpx;
			background: #FFFFFF;
		}
		.list-box {
			padding-left: 20rpx;
			padding-right: 20rpx;
			margin-top: 20rpx;
			border-radius: 8rpx;
			background: #FFF;
			.top-box {
				display: flex;
				align-items: center;
				padding: 20rpx 0rpx;
				.tiem-box {
					color: #999;
					font-size: 24rpx;
				}
				.status-box {
					margin-left: auto;
					display: flex;
					align-items: center;
					.item-box {
						padding: 4rpx 12rpx;
						width: 96rpx;
						height: 42rpx;
						border-radius: 10rpx;
						background: #F5F7FB;
						color: #8295BC;
						font-size: 24rpx;
					}
				}
			}
			.xian {
				width: 662rpx;
				border-bottom: 1px solid #EAEAEA;
			}
			.title-box {
				padding-top: 20rpx;
				padding-bottom: 20rpx;
				color: #333;
				font-size: 28rpx;
				font-weight: bold;
			}
			.info-box {
				display: flex;
				align-items: center;
				border-radius: 8rpx;
				background: #F5F7FB;
				padding-top: 10rpx;
				padding-bottom: 10rpx;
				.info-item {
					flex: 1;
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					.info-item-title {
						color: #999;
						font-size: 24rpx;
					}
					.info-item-text {
						margin-top: 8rpx;
						color: #333;
						font-size: 28rpx;
						font-weight: bold;
					}
				}
			}
			.text-box {
				padding-top: 20rpx;
				padding-bottom: 20rpx;
				color: #999;
				font-size: 24rpx;
			}
			.bnt-box {
				padding-top: 20rpx;
				padding-bottom: 20rpx;
				.bnt-big-box{
					display: flex;
					justify-content: flex-end;
					align-items: center;
					.bnt {
						margin-right: 20rpx;
						display: flex;
						align-items: center;
						border-radius: 10rpx;
						background: #F5F7FB;
						padding: 15rpx 20rpx 15rpx 20rpx;
						color: #4D8987;
						font-size: 24rpx;
					}
				}
			}
		}
	}
</style>